<template>
	<view class="content  padding-top-30">
		<view class=" padding-about-34 font-size-26 font-weight-bold color-999">
			请在5分钟内输入154****7458收到的验证码
		</view>
		<view style="background-color: #FFFFFF;" class="margin-top-20">
			<view class="display-flex space-between alig" style="padding: 20rpx 34rpx;">
				<view class="display-flex file-1 alig">
					<view class="font-size-26 margin-right-20">
						验证码
					</view>
					<input type="text" value="" class="font-size-24" placeholder="请输入验证码" />
				</view>
				<view class="getcode" @click="getCode">
					{{tips}}
				</view>
			</view>
		</view>
		<view class="display-flex center margin-top-120">
			<view class="button" style="padding: 24rpx 308rpx;">
				下一步
			</view>
		</view>
		<view class="font-size-32 font-weight-bold color-999 text-center margin-top-40">
			手机号已停用
		</view>
		
	</view>
</template>

<script>
	
	export default {
		components: {},
		data() {
			return {
				tips: '获取验证码',
				// refCode: null,
				seconds: 10,
				status:0
			};
		},
		onReachBottom() {},
		onLoad(option) {},
		onShow() {},
		methods: {
			codeChange(text) {
				this.tips = text;
			},
			getCode() {
				if(this.status==0){
					this.status = 1
					let i = setInterval(()=>{
						if(this.seconds>0){
							this.seconds--
							this.tips = this.seconds+'s'
						}else{
							this.status = 0
							this.seconds = 10
							this.tips = '重新获取'
							clearInterval(i)
						}
					},1000)
				}
			},
		},
		computed: {},
		watch: {}
	};
</script>

<style scoped lang="scss">
	.getcode{
		width: 168rpx;
		height: 64rpx;
		background: #FFFFFF;
		border-radius: 32rpx 32rpx 32rpx 32rpx;
		border: 1rpx solid #F4F4F4;
		font-weight: 400;
		font-size: 26rpx;
		color: #333333;
		line-height: 64rpx;
		text-align: center;
	}
</style>